<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改商户信息</title>
    <script>
        var uploader = WebUploader.create({
            // swf文件路径
            swf: BASE_URL + '/js/Uploader.swf',
            // 文件接收服务端。
            server: 'http://webuploader.duapp.com/server/fileupload.php',
            // 选择文件的按钮。可选。
            // 内部根据当前运行是创建，可能是input元素，也可能是flash.
            pick: '#picker',
            // 不压缩image, 默认如果是jpeg，文件上传前会压缩一把再上传！
            resize: false
        });

    </script>
</head>
<body>
<form action="${ctx}/merchant/update" method="post" class="form-horizontal">
    <input type="hidden" name="id" value="${merchant.id}">
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">商户名称：</label>
        <div class="col-sm-4">
            <input id="name" class="form-control" type="text" name="name" value="${merchant.name}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="introduction" class="col-sm-2 control-label">商户简介：</label>
        <div class="col-sm-4">
            <textarea id="introduction" class="form-control" rows="3" name="introduction" value="${merchantUser.introduction}">

            </textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="logo" class="col-sm-2 control-label">商户logo：</label>
        <div class="col-xs-6 col-md-3">
            <img src="..." alt="..." height="180" width="180">
            <div id="uploader" class="wu-example">
                <div id="thelist" class="uploader-list"></div>
                <div class="btns">
                    <div id="picker">选择文件</div>
                    <button id="ctlBtn" class="btn btn-default">开始上传</button>
                </div>
            </div>
            <input id="logo" class="form-control" type="hidden" name="logo" value="${merchantUser.logo}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="album" class="col-sm-2 control-label">相册：</label>
        <div class="col-sm-4">
            <input id="album" class="form-control" type="text" name="album" value="${merchantUser.album}"/>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-4">
            <input type="submit" class="btn btn-primary" value="提交"/>
        </div>
    </div>
</form>
</body>



</html>
